import qqSDK from './qqmap-wx-jssdk.min.js'
// var qqSDK = require('@/common/js/qqmap-wx-jssdk.min.js')
export function sdk() {
	return new Promise((resolve,reject)=>{
		var qqMap = new qqSDK({
			key: '23JBZ-V7DCF-ZFUJ4-JFPKH-VL6OV-VOFKY'
		});
		wx.getLocation({
			type: 'wgs84',
			success: res => {  
				qqMap.reverseGeocoder({
					success: res => {
					 resolve(res)
					}
				})
			}
		})
	})
}
